Enable bounded cross-multiplication of inequations in DefOps#3907
Open
unp1 wants to merge 1 commit into
Open
Conversation
Created with AI tooling support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intended Change
A regularly occuring problem (at least in my case) is that KeY could not close a proof on DefOps and I had to switch to Model Search which closed it.
What closed the problem at the end was the use of the cross multiplication not the systematic cuts or equation saturation performed by Model Search.
An example that could not be proven w/o switching to Model Search is
The reason why cross multiplication handling was not on DefOps is that it could drown out other theories. This PR activates cross-multiplication in a restricted form for DefOps. The cross multiplication rules are restricted to cases where the product of the left-hand sides of the involved inequations occurs on some other inequation on the left side too.
Type of pull request
Ensuring quality
DefOpsCrossMultiplicationTestwith the pure arithmeticcore of the matrix obligation (
crossMultDefOps.key): closes with DefOps(new) and with Model Search (as before), stays open with Basic.
runAllProofson the branch: 674/674 proofs, 0 failures.node counts).
Additional information and contact(s)
The strategy-side surface of this PR (per-mode bindings in
IntegerStrategy)overlaps with the value-preserving cost refactoring in #3904; whichever lands
second needs a small mechanical rebase there.
PR created with AI tooling support.
The contributions within this pull request are licensed under GPLv2 (only) for inclusion in KeY.